package com.design.pattern.proxy.staticproxy;

public class Client {

    public static void main(String[] args) {
        //创建目标对象
        TeacherDao teacherDao = new TeacherDaoImpl();
        //创建代理对象
        TeacherDaoImplProxy teacherDaoImplProxy = new TeacherDaoImplProxy(teacherDao);
        teacherDaoImplProxy.teach();
    }
}
